package ${packageName}.model;

import java.util.Date;
import lombok.*;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ${modelName}{

<#if columns??>
    <#list columns as column>
        <#if column.type='VARCHAR'||column.type='TEXT'||column.type='CHAR'|| column.type='LONGTEXT'>
            /**
            * ${column.remark}
            */
            private String ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='INT' || column.type='INT UNSIGNED'>
            /**
            * ${column.remark}
            */
            private Integer ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='DATETIME'>
            /**
            * ${column.remark}
            */
            private Date ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='BIGINT' || column.type='BIGINT UNSIGNED'>
            /**
            * ${column.remark}
            */
            private Long ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='DOUBLE'>
            /**
            * ${column.remark}
            */
            private BigDecimal ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='BIT'>
            /**
            * ${column.remark}
            */
            private Boolean ${column.propertyName?uncap_first};
        </#if>
    </#list>
</#if>
}